package world.endCondition;

import world.World;

/**
 * used to check for game ending conditions, the conditions themselves
 * should be registered with the game world (see {@link world.World}),
 * when the condition is reached then the world will end the game
 * @author jack
 *
 */
public interface EndCondition
{
	/**
	 * tests to see if the end condition has been met
	 * @param w
	 * @return returns true if the end condition is met, false otherwise
	 */
	public boolean gameEnd(World w);
	/**
	 * gets an end game message to be displayed when the world
	 * detects that the end condition has been reached
	 * @return
	 */
	public String getEndMessage();
}
